package com.s2paganini.util 
{
	import flash.text.TextField;
	import flash.text.TextFieldType;		

	/**
	 * @author siLvio paganini | s2paganini.com
	 * @purpose: Debugger 
	 */

	public class Debugger {
		private static var debugText : TextField;

		public static function Debug() : TextField
		{
			debugText = new TextField();
			debugText.width = 200;
			debugText.height = 300;
			debugText.x = 1000;
			debugText.border = true;
			debugText.wordWrap = true;
			debugText.type = TextFieldType.DYNAMIC;
			debugText.selectable = true;
			debugText.background = true;
			return debugText;
		}

		public static function DebugText(what : *) : void
		{
			debugText.appendText(what + "\n");
		}
	}
}
